package header;

//import game.Launch;

import java.io.*;
import java.awt.*;

// Character class
public class RaceType implements Serializable {

	int wis, dex, inte, cha, str;
	String name;
	boolean gender;
	Items armor;
	Items weapon;
//	Items[] inventory;
	String classType;
	String race;
/*	private float x;

	private float y;

	private Image image;

	private Launch map;

	private float ang;

	private float size = 0.3f;

	public RaceType(Image image, Launch map, float x, float y) {
		this.image = image;
		this.map = map;
		this.x = x;
		this.y = y;
	}

	public boolean move(float dx, float dy) {

		float nx = x + dx;
		float ny = y + dy;
System.out.println("value of nx"+nx);
		if (validLocation(nx, ny)) {

			x = nx;
			y = ny;
			
			System.out.println("value of nx in validloaction"+nx+"value of ny"+ny);
			ang = (float) (Math.atan2(dy, dx) - (Math.PI / 2));
			return true;
		}

		return false;
	}

	public boolean validLocation(float nx, float ny) {
		


		if (map.blocked(nx - size, ny - size)) {

			return false;
		}
		if (map.blocked(nx + size, ny - size)) {
			return false;
		}
		if (map.blocked(nx - size, ny + size)) {
			return false;
		}
		if (map.blocked(nx + size, ny + size)) {
			return false;
		}
		

		return true;
	}

	public void paint(Graphics2D g) {

		int xp = (int) (Launch.TILE_SIZE * x);
		int yp = (int) (Launch.TILE_SIZE * y);

		g.rotate(ang, xp, yp);
		g.drawImage(image, (int) (xp - 16), (int) (yp - 16), null);
		g.rotate(-ang, xp, yp);
	}
*/
	public int getWis() {
		return wis;
	}
	public void setWis(int wis) {
		this.wis = wis;
	}
	public int getDex() {
		return dex;
	}
	public void setDex(int dex) {
		this.dex = dex;
	}
	public int getInte() {
		return inte;
	}
	public void setInte(int inte) {
		this.inte = inte;
	}
	public int getCha() {
		return cha;
	}
	public void setCha(int cha) {
		this.cha = cha;
	}
	public int getStr() {
		return str;
	}
	public void setStr(int str) {
		this.str = str;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public boolean isGender() {
		return gender;
	}
	public void setGender(boolean gender) {
		this.gender = gender;
	}
	public Items getArmor() {
		return armor;
	}
	public void setArmor(Items armor) {
		this.armor = armor;
	}
	public Items getWeapon() {
		return weapon;
	}
	public void setWeapon(Items weapon) {
		this.weapon = weapon;
	}
//	public Items[] getInventory() {
//		return inventory;
//	}
//	public void setInventory(Items[] inventory) {
//		this.inventory = inventory;
//	}
	public String getClassType() {
		return classType;
	}
	public void setClassType(String classType) {
		this.classType = classType;
	}
	
	public String getRace() {
		return race;
	}
	public void setRace(String race) {
		this.race = race;
	}

}
